package com.hyh.admin.domain.resources;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyh.ad.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "ResourcesCategory对象", description = "资源分类实体类")
public class ResourcesCategory extends BaseEntity implements Serializable {

    /*
     * 分类id
     */
    @ApiModelProperty(value = "分类id")
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失
    private Long id;

    /*
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    private String name;

    /*
     * 父类id
     */
    @ApiModelProperty(value = "父类id")
    private Long parentId;


}
